<template>
  <div>
      <h3>{{title}}</h3>
      <p>{{name}}</p>
      <p>{{price}}</p>
      <button @click="kanjia">砍一刀</button>
  </div>
</template>

<script>
export default {
props: ['title','name','price','index'],
methods: {
    kanjia(){
        this.$emit('pinyidao', this.index,1)
    }
}
}
</script>

<style>

</style>